<template>
  <div class="Index">
    <van-search
      placeholder="请输入搜索关键词"
      v-model="search"
      shape="round"
      clearable
      maxlength="100%"
      @focus="InFocus"
      @search="onSearch"
    />
    <Topnav></Topnav>
  </div>
</template>
<script>
import Topnav from './mobile/Topnav'
export default {
  name: 'Index',
  components: {
    Topnav
  },
  data() {
    return {
      search: ''
    }
  },
  methods: {
    InFocus() {
      console.log(1)
    },
    onSearch() {
      console.log('search')
    }
  }
}
</script>
<style scoped>
</style>